package com.huajin.iot.monitor.service.impl;

import com.huajin.iot.monitor.dao.GatewayDao;
import com.huajin.iot.monitor.domin.GatewayDO;
import com.huajin.iot.monitor.service.GatewayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class GatewayServiceImpl implements GatewayService {
    @Autowired
    private GatewayDao gatewayDao;

    @Override
    public GatewayDO get(Long id) {
        return gatewayDao.get(id);
    }

    @Override
    public List<GatewayDO> list(Map<String, Object> map) {
        return gatewayDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return gatewayDao.count(map);
    }

    @Override
    public int save(GatewayDO gateway) {
        return gatewayDao.save(gateway);
    }

    @Override
    public int update(GatewayDO gateway) {
        return gatewayDao.update(gateway);
    }

    @Override
    public int remove(Long id) {
        return gatewayDao.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return gatewayDao.batchRemove(ids);
    }

}
